package 观察者模式;

/**
 * @author: wh(1835734390 @ qq.com)
 * @date: 2023/8/9 13:55
 * @description:
 * @version:
 */
public class StockPriceDisplay2 implements Observer{
    @Override
    public void update(double price) {
        System.out.println("股票当前价格为" + price);
    }
}
